import fetch from './fetch'

export default {
  getUserList () {
    return fetch('/hjx/api/user/admGetUserList')
  },
  getPaperList (params) {
    return fetch('/hjx/api/paper/admGetPaperList', params )
  },
  auditPaper (paperId, reviewAction) { // 0通过，1不通过，2显示，3隐藏，4删除
    return fetch(`/hjx/api/paper/examinePaper?reviewAction=${reviewAction}&paperId=${paperId}`)
  },
  getCommentList (params) {
    return fetch('/hjx/api/paperInteraction/admGetPaperComment', params)
  },
  auditComment (params) {
    return fetch('/hjx/api/paperInteraction/reviewComment', params)
  },
  setAdmin (userId) {
    return fetch(`/hjx/api/user/setOrCancelAdmin?userId=${userId}`)
  }
}